#include "mainwindow.h"
#include <QApplication>
#include <QGraphicsRectItem>
#include <QGraphicsScene>
#include <QGraphicsView>
#include "mygriaphitem.h"
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
  //  MainWindow w;
    QGraphicsScene* sc = new QGraphicsScene;
    QGraphicsRectItem* it = new QGraphicsRectItem(50,50,100,100);

    QGraphicsEllipseItem* it1 = new QGraphicsEllipseItem(150,150,100,100);

    MyGriaphItem* it2 = new MyGriaphItem;
  sc->addItem(it2);
   // sc->addItem(it);
    //sc->addItem(it1);

    QGraphicsView *pv = new QGraphicsView;
    pv->setScene(sc);
    pv->show();

    //w.show();

    return a.exec();
}
